var fix = "Info";
var openid = $("#openid").val();
var islogin = $("#islogin").val();
var url = "http://taste.sosolabs.com/taster?call=homepage";
//var url = "http://127.0.0.1/taste/taster?call=homepage"
$(document).ready(function(){
	if(islogin==1){
		taste("astro","星座");
		taste("kid","儿童");
		taste("edu","教育");
		taste("tech","科技");
		taste("car","汽车");
		taste("finance","财经");
		taste("News","新闻中心");
		taste("comic","动漫");
		taste("game","游戏");
		taste("book","读书");
		taste("blog","博客");
		taste("lady","女性");
		taste("ent","娱乐");
		taste("sports","体育");
		taste("vfoucs","视觉焦点");
		taste("video","视频");
		taste("today","今日话题");
	}
});
http://127.0.0.1/taste/taste?call=homepage&openid=F08332A45A14FEC1CFFA452E4E6FCACE&part=%25E5%2584%25BF%25E7%25AB%25A5&title=%25E8%25B6%2585%25E6%259C%2589%25E5%2588%259B%25E6%2584%258F%25E7%259A%2584%25E9%25A3%259F%25E7%2589%25A9%25E5%2586%2599%25E7%259C%259F%25E9%259B%2586%25E9%2594%25A6&href=http://kid.qq.com/a/20110514/000006.htm&openid=F08332A45A14FEC1CFFA452E4E6FCACE&part=%E5%84%BF%E7%AB%A5&title=%E8%B6%85%E6%9C%89%E5%88%9B%E6%84%8F%E7%9A%84%E9%A3%9F%E7%89%A9%E5%86%99%E7%9C%9F%E9%9B%86%E9%94%A6&href=http://kid.qq.com/a/20110514/000006.htm
function taste(id,part){
	$("#"+id+fix+" a").click(function(){
		var title = $(this).text();
		var href = $(this).attr("href");
		var tasteurl = getURL(url,openid,part,title,href);
		tasteurl = encodeURI(tasteurl);
		//alert(tasteurl);
		fireAndForget(tasteurl);
	});	
}
function getURL(url,openid,part,title,href){
	var returnurl = url;
	returnurl+="&openid="+openid;
	returnurl+="&part="+part;
	returnurl+="&title="+title;
	returnurl+="&href="+href;
	return returnurl;
}
function fireAndForget(url){
	// create an image object
	var img = new Image();
	// hook the onload and onerror events to keep a reference until it's done
	img.onload = img.onerror = function(){
		// reset the handlers so they don't leak
		img.onload = img.onerror = null;
	};
	// set the src property to make the request
	img.src = url;
}